<!DOCTYPE HTML>
<html lang="en">
<head>
<title>IsObject() - Syntax &amp; Usage | AutoHotkey</title>
<meta name="description" content="The IsObject function returns a non-zero number if the specified value is an object." />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link href="../static/theme.css" rel="stylesheet" type="text/css" />
<script src="../static/content.js" type="text/javascript"></script>
</head>
<body>

<h1>IsObject() <span class="ver">[v1.0.90+]</span></h1>

<p>Returns a non-zero number if the specified value is an object.</p>

<pre class="Syntax">TrueOrFalse := <span class="func">IsObject</span>(ObjectValue)</pre>
<h2>Parameters</h2>
<dl>

  <dt>ObjectValue</dt>
  <dd><p>A <a href="../Objects.htm">object</a> stored in a variable, returned from a function, stored in another object or written directly.</p></dd>

</dl>

<h2>Return Value</h2>
<p>This function returns 1 if <em>ObjectValue</em> is an object; otherwise 0.</p>

<h2>Related</h2>
<p><a href="../Objects.htm">Objects</a></p>
<h2>Examples</h2>
<div class="ex" id="ExBasic">
<p><a href="#ExBasic">#1</a></p>
<pre>object := {key: "value"}

if IsObject(object)
    MsgBox, This is an object.
else
    MsgBox, This is not an object.</pre>
</div>

</body>
</html>
